projects
/
babl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e46c170
)
mask out unwanted formats with if(0) {...}
author
Nils Philippsen
<nils@redhat.com>
Thu, 26 May 2011 20:50:57 +0000
(22:50 +0200)
committer
Nils Philippsen
<nils@redhat.com>
Thu, 26 May 2011 20:50:57 +0000
(22:50 +0200)
premature return statements make source code checkers unhappy
babl/base/model-ycbcr.c
patch
|
blob
|
history
diff --git
a/babl/base/model-ycbcr.c
b/babl/base/model-ycbcr.c
index 13f35818ecf0f29d168406f8dc3cce1d57a133c7..6a6370eb48d15e21835fc2bf91616767621c9351 100644
(file)
--- a/
babl/base/model-ycbcr.c
+++ b/
babl/base/model-ycbcr.c
@@
-253,8
+253,10
@@
formats (void)
babl_sampling (2, 2),
babl_component_from_id (BABL_CR),
NULL);
- return;
+/* deactivate these for now */
+if (0)
+{
babl_format_new (
"name", "y'cbcr420",
"id", BABL_YCBCR420,
@@
-301,3
+303,4
@@
formats (void)
babl_component_from_id (BABL_CR),
NULL);
}
+}